home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Education / PC-SiG's World of Education.iso / run / 2602 / predef.hlp < prev    next >
Encoding:
Text File  |  1989-03-03  |  2.3 KB  |  51 lines

  1. Predefined Variables are variables that do not need to be created via
  2. an Assignment statement.  That is, they are variables whose values are
  3. pre-determined by DAN.  Their use in an Assignment statement causes the
  4. symbol on the left of the equal sign to be a 'temporary variable'.
  5.  
  6. The following variables are predefined by DAN and may be
  7. freely used in any expression.
  8.  
  9. T    Current step time value.
  10.  
  11. X    Current X axis value.  Normally this variable is the same
  12.      as T except when the values in a data file are being
  13.      used for the X axis (see XAXIS control). Be careful since
  14.      this distinction can produce results which are not
  15.      anticipated.
  16. +
  17. OPER Value to be entered by the operator via the standard
  18.      input device for each step time. A prompt is issued
  19.      before each data value unless this prompt is
  20.      suppressed via the -P command line option.  Values
  21.      entered may be floating point numbers, dates (mm/dd/yy),
  22.      or hours (hh:mm:ss).  If a prompt is output, its format
  23.      conforms to the current XFORMAT setting (NOMINAL,
  24.      DATES, HOURS).
  25.  
  26.      Since the value for OPER is taken from the standard
  27.      input device, the you may wish to suppress the prompt
  28.      and use DOS's I/O redirection feature to input data from
  29.      an ASCII file containing just data values (no
  30.      time tags). This file must be terminated with a control-Z.
  31. +
  32. These predefined variables allow the following types of statements:
  33.  
  34.      function = I*SIN (T) + COS (J*T);
  35.      thrust = 1000 * EXP(X);
  36.      myfile = OPER*OPER - 2*OPER + 36.9564;
  37.  
  38. The statement creating 'myfile' causes the operator to be prompted for
  39. a value at each step time in the implicit loop (unless the prompt has
  40. been suppressed via the 'Suppress OPER prompt? option).  The value
  41. entered into 'myfile' for that step time is the operator's value
  42. squared minus two times the operator's value plus 36.9564.
  43.  
  44. In other words, the value received from the operator is used for
  45. each occurrence of the variable OPER in the expression; only one
  46. value is entered per step time.  An early end to OPER data can be
  47. indicated by entering a control-Z character instead of a value;
  48. otherwise DUR/STEP + 1 values must be entered.  If an early end
  49. occurs, DAN completes the implicit loop and uses the last entered
  50. value for all subsequent step times.
  51.